# -*- coding: utf-8 -*-
from datetime import timedelta
from airflow.operators.bash import BashOperator
from jms.dm.dm_collect_duration_dt import jms_dm__dm_collect_duration_dt

# 始发出港时长（T-5）
oss__collect_duration = BashOperator(
    task_id='oss__collect_duration',
    email=['shenjiaming@jtexpress.com','yl_bigdata@yl-scm.com'],
    pool='unlimited_pool',
    bash_command='jms/oss/collect_duration/execute.sh',
    execution_timeout=timedelta(minutes=10),
    sla=timedelta(hours=7)
)

oss__collect_duration << [jms_dm__dm_collect_duration_dt]
